package com.car.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.ResponseBody;
import com.car.entity.carType;
import com.car.service.CartypeService;

@RestController
@RequestMapping("/carType")
public class carTypeController {
@Autowired
CartypeService typeService;

@RequestMapping("/selByBrandId")
public List<carType> selByBrandId(String carBrandId){
	List<carType> list=typeService.selectAll(carBrandId);
	return typeService.selectAll(carBrandId);
}
}
